.class Lcom/netease/netstat/statistics/StatisticsService$4;
.super Ljava/lang/Object;
.source "StatisticsService.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/netstat/statistics/StatisticsService;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/netstat/statistics/StatisticsService;


# direct methods
.method constructor <init>(Lcom/netease/netstat/statistics/StatisticsService;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/netstat/statistics/StatisticsService$4;->this$0:Lcom/netease/netstat/statistics/StatisticsService;

    .line 142
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    .prologue
    .line 146
    iget-object v1, p0, Lcom/netease/netstat/statistics/StatisticsService$4;->this$0:Lcom/netease/netstat/statistics/StatisticsService;

    new-instance v2, Lcom/netease/netstat/statistics/LookUpDnsTest;

    iget-object v3, p0, Lcom/netease/netstat/statistics/StatisticsService$4;->this$0:Lcom/netease/netstat/statistics/StatisticsService;

    invoke-static {v3}, Lcom/netease/netstat/statistics/StatisticsService;->access$0(Lcom/netease/netstat/statistics/StatisticsService;)Landroid/telephony/TelephonyManager;

    move-result-object v3

    iget-object v4, p0, Lcom/netease/netstat/statistics/StatisticsService$4;->this$0:Lcom/netease/netstat/statistics/StatisticsService;

    invoke-static {v4}, Lcom/netease/netstat/statistics/StatisticsService;->access$1(Lcom/netease/netstat/statistics/StatisticsService;)Landroid/net/ConnectivityManager;

    move-result-object v4

    iget-object v5, p0, Lcom/netease/netstat/statistics/StatisticsService$4;->this$0:Lcom/netease/netstat/statistics/StatisticsService;

    invoke-static {v5}, Lcom/netease/netstat/statistics/StatisticsService;->access$2(Lcom/netease/netstat/statistics/StatisticsService;)Lcom/netease/netstat/utils/FileService;

    move-result-object v5

    invoke-direct {v2, v3, v4, v5}, Lcom/netease/netstat/statistics/LookUpDnsTest;-><init>(Landroid/telephony/TelephonyManager;Landroid/net/ConnectivityManager;Lcom/netease/netstat/utils/FileService;)V

    invoke-static {v1, v2}, Lcom/netease/netstat/statistics/StatisticsService;->access$7(Lcom/netease/netstat/statistics/StatisticsService;Lcom/netease/netstat/statistics/LookUpDnsTest;)V

    .line 147
    iget-object v1, p0, Lcom/netease/netstat/statistics/StatisticsService$4;->this$0:Lcom/netease/netstat/statistics/StatisticsService;

    invoke-static {v1}, Lcom/netease/netstat/statistics/StatisticsService;->access$8(Lcom/netease/netstat/statistics/StatisticsService;)Lcom/netease/netstat/statistics/LookUpDnsTest;

    move-result-object v1

    sget-object v2, Lcom/netease/netstat/utils/Contanst;->dns:[Ljava/lang/String;

    invoke-virtual {v1, v2}, Lcom/netease/netstat/statistics/LookUpDnsTest;->getdnstime([Ljava/lang/String;)V

    .line 149
    const/4 v0, 0x0

    .line 150
    .local v0, i:I
    :cond_0
    :goto_0
    sget-object v1, Lcom/netease/netstat/utils/Contanst;->statistic:Lcom/netease/netstat/utils/Statistic;

    invoke-virtual {v1}, Lcom/netease/netstat/utils/Statistic;->getDnsaveragetime()F

    move-result v1

    const/4 v2, 0x0

    cmpg-float v1, v1, v2

    if-lez v1, :cond_1

    .line 151
    sget-object v1, Lcom/netease/netstat/utils/Contanst;->statistic:Lcom/netease/netstat/utils/Statistic;

    invoke-virtual {v1}, Lcom/netease/netstat/utils/Statistic;->getDns163()J

    move-result-wide v1

    const-wide/16 v3, 0x0

    cmp-long v1, v1, v3

    if-lez v1, :cond_1

    .line 162
    :goto_1
    return-void

    .line 153
    :cond_1
    const-wide/16 v1, 0x3e8

    :try_start_0
    invoke-static {v1, v2}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    .line 154
    add-int/lit8 v0, v0, 0x1

    .line 156
    const/16 v1, 0xa

    if-le v0, v1, :cond_0

    goto :goto_1

    .line 158
    :catch_0
    move-exception v1

    goto :goto_0
.end method
